package com.example.demo.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.example.demo.mapper.IHouserDao;
import com.example.demo.pojo.Houser;
import com.example.demo.service.IHouserService;

@Service("HouserService")
public class HouserServiceImpl implements IHouserService{

	@Resource
	private IHouserDao HouserDao;

	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return this.HouserDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Houser record) {
		// TODO Auto-generated method stub
		return this.HouserDao.insert(record);
	}

	@Override
	public int insertSelective(Houser record) {
		// TODO Auto-generated method stub
		return this.HouserDao.insertSelective(record);
	}

	@Override
	public Houser selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return this.HouserDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Houser record) {
		// TODO Auto-generated method stub
		return this.HouserDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Houser record) {
		// TODO Auto-generated method stub
		return this.HouserDao.updateByPrimaryKey(record);
	}

	@Override
	public List<Houser> selectHouser() {
		// TODO Auto-generated method stub
		return this.HouserDao.selectHouser();
	}

	@Override
	public Houser selectHouserByOpenid(String openid) {
		// TODO Auto-generated method stub
		return this.HouserDao.selectHouserByOpenid(openid);
	}

	@Override
	public Houser HouserLogin(String tel, String pwd) {
		// TODO Auto-generated method stub
		return this.HouserDao.HouserLogin(tel, pwd);
	}

	@Override
	public List<Houser> selectHouserByName(String name) {
		// TODO Auto-generated method stub
		return this.HouserDao.selectHouserByName(name);
	}

	@Override
	public Houser selectHouserByLimitOne() {
		return this.HouserDao.selectHouserByLimitOne();
	}

}
